﻿// MIT License
// 开源地址：https://gitee.com/co1024/AbcMvc
// Copyright (c) 2021-2023 1024
// Abc.Mvc=Furion+EF+SqlSugar+Pear layui admin.

namespace Abc.Core.SeedData;

/// <summary>
///     邮件发送配置
/// </summary>
public class EmailSendConfigSeedData : IEntitySeedData<EmailSendConfig>
{
    public IEnumerable<EmailSendConfig> HasData(DbContext dbContext, Type dbContextLocator)
    {
        return new[]
        {
            new EmailSendConfig
            {
                Id = 1,
                IsEnable = true,
                EmailSmtpHost = "smtp.qq.com",
                EmailSmtpPort = "465",
                EmailAccount = "abc@qq.com",
                EmailPassword = "123123",
                EmailIsHtml = true,
                EmailDisplayName = "Abc.Admin",
                EmailIsSsl = true,
                CreationTime = DateTimeOffset.Now,
                CreatorUserId = 0,
                CreatorUserName = ""
            }
        };
    }
}